package com.trade.service;

import java.util.List;

import com.trade.model.Contact;

public interface IContactService {
	
	public void save(Contact contact);
	
	public Contact getContactById(long contactId);
	
	public List<Contact> getAllContacts();
	
	/**
	 * 
	 * 获得大于或小于totalLimit总价的合同, upper==true标示高于等于false低于
	 * @since  2013-2-22
	 * @author chengpeng.zhang
	 * @param totalLimit
	 * @param upper
	 * @return
	 */
	public List<Contact> getAllContacts(int totalLimit, boolean upper);
	
}
